<!DOCTYPE html>
<!-- saved from url=(0059)http://www.hasbei.com/qa/detail/202008011289396856023027712 -->
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>为什么金庸武侠小说里，那么多人物，没有一个人牙疼呢？-口腔问题-有贝口腔网</title>
    <meta name="keywords" content="牙疼，金庸小说中的人物为什么不牙疼,有贝口腔网,口腔问答,口腔问题">
    <meta name="description" content="为什么金庸武侠小说里，那么多人物，没有一个人牙疼呢？,有贝口腔网为用户提供专业的口腔资讯，口腔知识，口腔问题等综合服务型网站">
    <link rel="stylesheet" href="/css/reset.css">
    <link rel="stylesheet" href="/css/commone.css">
    <link rel="stylesheet" href="/css/commthree.css">
    <link rel="stylesheet" href="/css/pinglun.css">
    <link rel="stylesheet" media="screen and (min-width:481px)" href="/css/qadetail.css">
    <link rel="stylesheet" media="screen and (max-width:480px)" href="/css/qadetail(1).css">

    <script src="/js/hm.js"></script>
    <script type="text/javascript">
        var basePath = "/";
    </script>
    <script src="/js/common.js"></script>
    <script src="/js/jquery-3.5.1.min.js"></script>
    <script src="/js/footfixed.js"></script>

    <script src="http://www.hasbei.com/static/layer/layer.js" type="text/javascript"></script>
    <link rel="stylesheet" href="http://www.hasbei.com/static/layer/theme/default/layer.css?v=3.1.1" id="layuicss-layer">
    <script src="/js/wangEditor.min.js"></script>

    <script src="/js/condetail1.js"></script>
    <script src="/js/qadetail.js"></script>

</head>

<body>
<div class="content">

    <!--头部-->
    <div th:replace="./common/hasbei_top"></div>
    <div th:replace="./common/hasbei_top_user"></div>
    <div class="main-tab">
        <div class="max-width">
            <ul class="main-tab-ul">
                <li th:class="${toothType == null}?'main-tab-active':''"><a href="/answers/main" target="_self">今日热门</a></li>

                <li th:each="var,i : ${typeList}" th:if="${i.index} < 10" th:class="${var.tid == toothType}?'main-tab-active':'' ">
                    <a th:href="@{'/answers/main?indexPage=1&toothType='+${var.tid}}" target="_self" th:text="${var.name}"></a>
                </li>
                <li class="tab-more-list">
                    <a href="javascript:;" target="_self">
                        <span>更多</span>
                        <img class="arrow-bottom" src="/icon/arrow-bttom.png" alt="有贝口腔网">
                    </a>
                    <div>
                        <ul>
                            <li th:each="var,i : ${typeList}" th:if="${i.index} >= 10">
                                <a th:href="@{'/answers/main?toothType='+${var.tid}}" target="_self" th:text="${var.name}">龅牙</a>
                            </li>
                        </ul>
                    </div>
                </li>
            </ul>

        </div>
    </div>
    <div class="content-main">

        <input type="hidden" id="no" th:value="${answer.qid}">
        <input type="hidden" id="collectType" value="1">
        <div class="box-bg-shadow">
            <div class="qa-top">
                <a class="qa-type" href="http://www.hasbei.com/qa/2" th:text="${answer.tname}">牙疼</a>
                <!-- <a class="ansower-type qa-type" href="#">已回答</a>  -->
                <a class="ansower-type" th:href="${'/user/personage/'+answer.uid}">
                    <img th:src="${answer.imgpath}" alt="有贝口腔网">
                    <span th:text="${answer.name}">司棋</span>
                </a>
                <a class="please-ansower" href="javascript:;"> 遇到下面问题，需要你帮忙解答</a>
            </div>

            <div class="qa-title" th:text="${answer.q_title}">为什么金庸武侠小说里，那么多人物，没有一个人牙疼呢？</div>

            <div class="qa-bg" th:if="${answer.q_content}">
                <span class="title-text">[问题背景]：</span>
                <div class="bg-content">
                    <p th:utext="${answer.q_content}">
                        &nbsp;&nbsp;<!--<img src="/img/1e1b45274e0b44d9b4dc4fc076e565eb.jpg">-->
                        我右边的牙齿爆出来而导致不露齿的时候嘴歪,这种矫正什么价位合适,或者哪家医院可以推荐一下呢 ？
                    </p>
                </div>
                <div class="shou-all-bg" style="">
                    <div class="bg-div"></div>
                    <span>展开全部</span>
                </div>
            </div>

            <div class="qa-info-share">
                <div class="qa-info">

                    <a href="javascript:;" class="huida-num">
                        <img src="/icon/icon_News.png" alt="有贝口腔网">
                        <span th:text="${answer.answer}">0</span>个回答
                    </a>
                    <a href="javascript:;" class="thumbs-up">
                        <img src="/icon/icon_Browse.png" alt="有贝口腔网">
                        <span th:text="${answer.read_count}">14</span>阅读
                    </a>
                    <!-- <a href="" class="share">
                        <img src="images/icon_Share.png" alt="有贝口腔网">
                        <span>4分享</span>
                    </a> -->
                    <a href="javascript:;" class="conllection" onclick="myCollect(this)">
                        <img src="/icon/shoucang1.png" alt="有贝口腔网">
                        <span id="collectType1">收藏问题(<span th:text="${answer.collection_count}"></span>)
                        </span>
                    </a>
                    <span class="time" th:text="${answer.dateTime}">1天前</span>
                </div>

            </div>

            <div class="editor-div">
                <div id="editor2">
                    <p class="tip-text" style="color: #999">请输入相关口腔文章、资讯内容</p>
                </div>
                <div class="edditor-bottom">
                    <div>字数 <span class="length">0</span></div>
                    <div class="sub-btn">发表回答</div>
                </div>
            </div>

            <div class="qa-info-list">
                <div class="qa-list-top">
                    <span><em th:text="${answer.answer}">0</em>&nbsp;个回答</span>
                </div>

                <div id="myContent" th:if="${answer.answer!='0'}">
                    <div class="qa-list-item" th:each="var : ${byanswer}">
                        <div class="list-item-user">
                            <div class="user-img-name">
                                <a class="user-img" th:href="${'/user/personage/'+var.answer_id}" target="_blank">
                                    <img th:src="${var.answer_imgpath}"></a>
                                <div class="qa-name-time">
                                    <a href="/user/1282955775085514752" target="_blank" th:text="${var.answer_name}">有贝口腔网 王白石</a>
                                    <span th:text="${var.create_time}">18小时前</span>
                                </div>
                            </div>
                        </div>
                        <div class="list-item-content"><p th:utext="${var.answer_comment}">正常的洗牙对人体是没有伤害的，洗牙可以去除牙结石，这个不用担心的，但是一定要去正规大医院进行洗牙。洗牙可以一年清洗2次。<br></p></div>
                        <div class="show-all" style="display: none;">
                            <div class="bg-div"></div>
                            <span>展开全部</span>
                        </div>
                        <div class="qa-info">
                            <a href="javascript:;" class="thumbs-up" onclick="addOption(this,0)" th:id="${var.answer_id}">
                                <img src="/icon/icon_Like.png" alt="有贝口腔网">
                                <span th:id="${'qaReplyLikeCount'+var.answer_id}" th:text="${var.a_like+'点赞'}">0点赞</span>
                            </a>
                            <a href="javascript:;" class="thumbs-down" onclick="addOption(this,1)" th:id="${var.answer_id}">
                                <img src="/icon/icon_Like.png" alt="有贝口腔网">
                                <span th:id="${'qaReplyStepCount'+var.answer_id}" th:text="${var.read_like_no+'踩'}">0踩</span>
                            </a>
                            <a href="javascript:;" class="comment-on five" onclick="commentInit(this)" th:id="${var.answer_id}">
                                <img src="/icon/icon_News.png" alt="有贝口腔网">
                                <span th:id="${'commentSum'+var.answer_id}" th:text="${var.count}">0</span>评论
                            </a>
                            <span class="time" th:text="${var.create_time}">18小时前</span>
                        </div>
                        <div class="pinglun" style="display: none;">
                            <div class="publish-discuss">
                                <div class="user-logo">
                                    <a><img src="/icon/user_Default.png"></a>
                                </div>
                                <div class="discuss-input">
                                    <textarea placeholder="写下您的评论..." class="textarea" th:id="${'commentContent'+var.answer_id}"></textarea>
                                    <div class="answer-div">
                                        <span class="answer-btn" th:id="${var.answer_id}" onclick="btdAddComment(this)">评论</span>
                                    </div>
                                </div>
                            </div>
                            <div class="discuss-box" th:id="${'commentList'+var.answer_id}">

                            </div>
                            <div class="show-more" onclick="moreCommentlist(this)" th:id="${var.answer_id}">查看更多评论</div>
                        </div>

                    </div>

                </div>

                <div class="more-content" th:if="${answer.answer == '0'}">
                    <div class="load-more" style="display:none">
                        <img src="/static/images/load-more.gif" alt="有贝口腔网">
                        <span>加载中</span>
                    </div>
                    <div class="no-data">还没有人回答该问题哦，需要您来帮忙回答~</div>
                </div>
            </div>

        </div>


        <div class="aside-left">

            <div class="wonderful-top">
                <div class="wonderful-top-title">
                    <img src="/img/Linkeddatabases.png" alt="有贝口腔网">
                    <span>相关问题</span>
                </div>

                <div class="aside-qa-list" th:each="var : ${xgList}">

                    <a th:href="@{'/answers/'+${var.qid}}">
                        <span class="aside-qa-title" th:text="${var.q_title}">左边牙疼，太阳穴那也疼，怎么回事？</span>
                    </a>
                    <a th:href="@{'/answers/'+${var.qid}}"><span
                            class="aside-qa-ansower" th:text="${var.answer}">1</span>个回答</a>
                </div>

            </div>

            <div class="wonderful-top">
                <div class="wonderful-top-title">
                    <!-- <img src="/static/images/rmd.png" alt="有贝口腔网"> -->
                    <span>大家都在问</span>
                </div>
                <div class="wonderful-ansewer-list" >
                    <div class="ansewer-list-item" th:each="var,i : ${djList}">

                        <span class="pink-bg" th:text="${i.count}"></span>
                        <div>
                            <a target="_blank" class="ansewer-list-title"
                               th:href="@{'/answers/'+${var.qid}}" th:text="${var.q_title}">口腔发炎怎么治？</a>
                            <div class="ansewer-list-info">
                                <a target="_blank" th:href="@{'/answers/'+${var.qid}}">
                                    <!-- <img src="/static/images/Write.png" alt=""> -->
                                    <span class="ansewer-list-info-ansewer">回答</span>
                                </a>
                                <a target="_blank" th:href="@{'/answers/'+${var.qid}}">
                                    <span th:text="${var.answer}">1</span>个回答
                                </a>
                                <span class="dotted"></span>
                                <a target="_blank" th:href="@{'/answers/'+${var.qid}}">
                                    <span th:text="${var.read_count}">1681</span>阅读
                                </a>
                            </div>
                        </div>

                    </div>

                </div>
            </div>

        </div>

        <input type="hidden" id="user" th:value="${auto}">

    </div>
    <!--尾部-->
    <div th:replace="common/hasbei_bottom"></div>
    <script>
        var _hmt = _hmt || [];
        (function () {
            var hm = document.createElement("script");
            hm.src = "https://hm.baidu.com/hm.js?4245936cbef31e434e2b387b56dfd7d8";
            var s = document.getElementsByTagName("script")[0];
            s.parentNode.insertBefore(hm, s);
        })();
    </script>


</div>





</body>

<script type="text/javascript">

    //编辑器
    var E = window.wangEditor;
    var editor = new E('#editor2');
    editor.customConfig.uploadImgServer = basePath+'upload';
    // 将图片大小限制为 1M
    editor.customConfig.uploadImgMaxSize = 1 * 1024 * 1024;
    editor.customConfig.uploadFileName = 'upfile';
    // 将 timeout 时间改为 10s
    editor.customConfig.uploadImgTimeout =10000;
    editor.customConfig.customAlert = function (info) {//自定义错误提示信息
        layer.msg(info);
    }

    editor.customConfig.menus = [
        'head',  // 标题
        'bold',  // 粗体
        'fontSize',  // 字号
        'fontName',  // 字体
        'italic',  // 斜体
        'underline',  // 下划线
        'strikeThrough',  // 删除线
        'foreColor',  // 文字颜色
        'backColor',  // 背景颜色
        'link',  // 插入链接
        'list',  // 列表
        'justify',  // 对齐方式
        'quote',  // 引用
        //'emoticon',  // 表情
        'image',  // 插入图片
        'table',  // 表格
        //'video',  // 插入视频
        // 'code',  // 插入代码
        'undo',  // 撤销
        'redo'  // 重复
    ]

    editor.customConfig.onchangeTimeout = 1 // 单位 ms

    editor.customConfig.pasteTextHandle = function (content) {
        return delHtmlTag(content);//去除复制带来的标签代码
    }

    editor.customConfig.onchange = function () {
        var articallength =editor.txt.text().length;
        $(".length").text(articallength);
    }

    editor.customConfig.onfocus = function () {
        $(".tip-text").remove();
    }

    editor.create();

    $(".sub-btn").click(function(){
        $(".tip-text").remove();
        var user=$("#user").val();
        console.log(user)
        var content = editor.txt.text();

        if(user=='' || user.length==0){//进行登录
            layer.msg("请登录再评论");
        }else{
            if(content == '' || content.length < 10){
                layer.msg("请输入回答10以上个字符");
                return false;
            }
            addReply(editor.txt.html());//回复
        }
    });

    function addReply(content) {
        if(isBlank(content)){
            alert("请输入回答内容");
            return ;
        }
        var no=$("#no").val();
        var user=$("#user").val();
        var data = {};
        data["aid"]=no;
        data["aa_content"]=content;
        data['uid']=user;
        $.ajax({
            type : "POST",
            url : basePath+"answers/addReply?t="+new Date().getTime(),
            data : data,
            success : function(data) {
                if (data==1) {
                    layer.msg("恭喜你，回答成功，待审核中");
                    editor.txt.html('');
                } else {
                    layer.msg("评论异常");
                }
            },
            error: function(XMLHttpRequest, textStatus, errorThrown){
                alert("链接错误,请联系管理员");
            }
        });
    }


    //===评论事件
    $(function(){
        qaPinglunInitEv();
        initOverflow();
    })

    function qaPinglunInitEv(){
        $(".asdn").hide();
        $(".show-all").unbind("click");
        $(".show-all").click(function(){
            $(".asdn").show();
            $(this).hide();
        })


        $(".pinglun").hide();
        $(".five").unbind("click");
        $(".five").click(function(){//点击评论展开评论内容
            if($(this).parent().next().is(':hidden')){//如果是隐藏就就显示
                $(".pinglun").hide();//先隐藏其他已展开的评论
                $(this).parent().next().show();//再次展开自己
            }else{//因此
                $(this).parent().next().hide();
            }
        });
    }

    function initOverflow(){
        // 太长隐藏点击展开
        $(".show-all").hide();
        $(".list-item-content").each(function (i,dom){
            if($(this).height() > 300){
                $(this).next().show();
                $(this).addClass("overflow-content");
            }else{
                $(this).next().hide();
                $(this).removeClass("overflow-content");
            }
        })
        $(".show-all").click(function(){
            $(this).prev(".list-item-content").removeClass("overflow-content");
            $(this).hide();
        })

        //问题背景隐藏
        $(".shou-all-bg").hide();
        if($(".bg-content").height() > 100){
            $(".bg-content").addClass("qa-bg-show");
            $(".shou-all-bg").show();
        }
        $(".shou-all-bg").click(function(){
            $(".bg-content").removeClass("qa-bg-show");
            $(this).hide();
        })
    }



</script>




</html>